const constantRoute = [
    {
        // 登录页
        path: '/',
        component: () => import('@/view/login/index.vue'),
        name: 'Login',
    },
    {
        // 主页
        path: '/home',
        component: () => import('@/view/home/index.vue'),
        name: 'Home',
    },
    {
        // 404
        path: '/404',
        component: () => import('@/view/404/index.vue'),
        name: '404',
    },
    {
        // 无适配路由
        path: '/:pathMatch(.*)*',
        redirect: '/404',
        name: 'Any',
    },
]

export default constantRoute
